package com.itkaien.mapper;

import com.itkaien.dto.GoodLedgetDto;
import com.itkaien.pojo.Ledger;
import com.itkaien.pojo.LedgerExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LedgerMapper {
    long countByExample(LedgerExample example);

    int deleteByExample(LedgerExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Ledger record);

    int insertSelective(Ledger record);

    List<Ledger> selectByExample(LedgerExample example);

    Ledger selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Ledger record, @Param("example") LedgerExample example);

    int updateByExample(@Param("record") Ledger record, @Param("example") LedgerExample example);

    int updateByPrimaryKeySelective(Ledger record);

    int updateByPrimaryKey(Ledger record);

    List<Ledger> selectpageAllledger(Integer goodsId,Integer start,Integer pageSize);
}